(0) Obligation:

Clauses:

p(.(X, [])).
p(.(s(s(X)), .(Y, Xs))) :- ','(p(.(X, .(Y, Xs))), ','(mult(X, Y, Z), p(.(Z, Xs)))).
p(.(0, Xs)) :- p(Xs).
sum(X, 0, X).
sum(X, s(Y), s(Z)) :- sum(X, Y, Z).
mult(X1, 0, 0).
mult(X, s(Y), Z) :- ','(mult(X, Y, W), sum(W, X, Z)).

Query: p(g)

(1) PrologToDTProblemTransformerProof (SOUND transformation)

Built DT problem from termination graph DT10.

(2) Obligation:

Triples:

multB(X1, s(X2), X3) :- multB(X1, X2, X4).
multB(X1, s(X2), X3) :- ','(multcB(X1, X2, X4), sumD(X4, X1, X3)).
sumD(X1, s(X2), s(X3)) :- sumD(X1, X2, X3).
multC(s(X1), X2) :- multC(X1, X3).
pA(.(s(s(s(s(X1)))), .(X2, X3))) :- pA(.(X1, .(X2, X3))).
pA(.(s(s(s(s(X1)))), .(X2, X3))) :- ','(pcA(.(X1, .(X2, X3))), multB(X1, X2, X4)).
pA(.(s(s(s(s(X1)))), .(X2, X3))) :- ','(pcA(.(X1, .(X2, X3))), ','(multcB(X1, X2, X4), pA(.(X4, X3)))).
pA(.(s(s(s(s(X1)))), .(X2, X3))) :- ','(pcA(.(X1, .(X2, X3))), ','(multcB(X1, X2, X4), ','(pcA(.(X4, X3)), multB(s(s(X1)), X2, X5)))).
pA(.(s(s(s(s(X1)))), .(X2, X3))) :- ','(pcA(.(X1, .(X2, X3))), ','(multcB(X1, X2, X4), ','(pcA(.(X4, X3)), ','(multcB(s(s(X1)), X2, X5), pA(.(X5, X3)))))).
pA(.(s(s(0)), .(X1, X2))) :- pA(.(X1, X2)).
pA(.(s(s(0)), .(X1, X2))) :- ','(pcA(.(X1, X2)), multC(X1, X3)).
pA(.(s(s(0)), .(X1, X2))) :- ','(pcA(.(X1, X2)), ','(multcC(X1, X3), pA(.(X3, X2)))).
pA(.(0, .(s(s(X1)), .(X2, X3)))) :- pA(.(X1, .(X2, X3))).
pA(.(0, .(s(s(X1)), .(X2, X3)))) :- ','(pcA(.(X1, .(X2, X3))), multB(X1, X2, X4)).
pA(.(0, .(s(s(X1)), .(X2, X3)))) :- ','(pcA(.(X1, .(X2, X3))), ','(multcB(X1, X2, X4), pA(.(X4, X3)))).
pA(.(0, .(0, X1))) :- pA(X1).

Clauses:

pcA(.(X1, [])).
pcA(.(s(s(s(s(X1)))), .(X2, X3))) :- ','(pcA(.(X1, .(X2, X3))), ','(multcB(X1, X2, X4), ','(pcA(.(X4, X3)), ','(multcB(s(s(X1)), X2, X5), pcA(.(X5, X3)))))).
pcA(.(s(s(0)), .(X1, X2))) :- ','(pcA(.(X1, X2)), ','(multcC(X1, X3), pcA(.(X3, X2)))).
pcA(.(0, .(X1, []))).
pcA(.(0, .(s(s(X1)), .(X2, X3)))) :- ','(pcA(.(X1, .(X2, X3))), ','(multcB(X1, X2, X4), pcA(.(X4, X3)))).
pcA(.(0, .(0, X1))) :- pcA(X1).
multcB(X1, 0, 0).
multcB(X1, s(X2), X3) :- ','(multcB(X1, X2, X4), sumcD(X4, X1, X3)).
sumcD(X1, 0, X1).
sumcD(X1, s(X2), s(X3)) :- sumcD(X1, X2, X3).
multcC(0, 0).
multcC(s(X1), X2) :- multcC(X1, X2).

Afs:

pA(x1)  =  pA(x1)

(3) TriplesToPiDPProof (SOUND transformation)

We use the technique of [DT09]. With regard to the inferred argument filtering the predicates were used in the following modes:
pA_in: (b)
pcA_in: (b)
multcB_in: (b,b,f)
sumcD_in: (b,b,f)
multcC_in: (b,f)
multB_in: (b,b,f)
sumD_in: (b,b,f)
multC_in: (b,f)
Transforming TRIPLES into the following Term Rewriting System:
Pi DP problem:
The TRS P consists of the following rules:

PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → U6_G(X1, X2, X3, pA_in_g(.(X1, .(X2, X3))))
PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → PA_IN_G(.(X1, .(X2, X3)))
PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → U7_G(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
U7_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U8_G(X1, X2, X3, multB_in_gga(X1, X2, X4))
U7_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → MULTB_IN_GGA(X1, X2, X4)
MULTB_IN_GGA(X1, s(X2), X3) → U1_GGA(X1, X2, X3, multB_in_gga(X1, X2, X4))
MULTB_IN_GGA(X1, s(X2), X3) → MULTB_IN_GGA(X1, X2, X4)
MULTB_IN_GGA(X1, s(X2), X3) → U2_GGA(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U2_GGA(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U3_GGA(X1, X2, X3, sumD_in_gga(X4, X1, X3))
U2_GGA(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → SUMD_IN_GGA(X4, X1, X3)
SUMD_IN_GGA(X1, s(X2), s(X3)) → U4_GGA(X1, X2, X3, sumD_in_gga(X1, X2, X3))
SUMD_IN_GGA(X1, s(X2), s(X3)) → SUMD_IN_GGA(X1, X2, X3)
U7_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U9_G(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U9_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U10_G(X1, X2, X3, pA_in_g(.(X4, X3)))
U9_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → PA_IN_G(.(X4, X3))
PA_IN_G(.(s(s(0)), .(X1, X2))) → U15_G(X1, X2, pA_in_g(.(X1, X2)))
PA_IN_G(.(s(s(0)), .(X1, X2))) → PA_IN_G(.(X1, X2))
PA_IN_G(.(s(s(0)), .(X1, X2))) → U16_G(X1, X2, pcA_in_g(.(X1, X2)))
U16_G(X1, X2, pcA_out_g(.(X1, X2))) → U17_G(X1, X2, multC_in_ga(X1, X3))
U16_G(X1, X2, pcA_out_g(.(X1, X2))) → MULTC_IN_GA(X1, X3)
MULTC_IN_GA(s(X1), X2) → U5_GA(X1, X2, multC_in_ga(X1, X3))
MULTC_IN_GA(s(X1), X2) → MULTC_IN_GA(X1, X3)
U16_G(X1, X2, pcA_out_g(.(X1, X2))) → U18_G(X1, X2, multcC_in_ga(X1, X3))
U18_G(X1, X2, multcC_out_ga(X1, X3)) → U19_G(X1, X2, pA_in_g(.(X3, X2)))
U18_G(X1, X2, multcC_out_ga(X1, X3)) → PA_IN_G(.(X3, X2))
PA_IN_G(.(0, .(s(s(X1)), .(X2, X3)))) → U20_G(X1, X2, X3, pA_in_g(.(X1, .(X2, X3))))
PA_IN_G(.(0, .(s(s(X1)), .(X2, X3)))) → PA_IN_G(.(X1, .(X2, X3)))
PA_IN_G(.(0, .(s(s(X1)), .(X2, X3)))) → U21_G(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
U21_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U22_G(X1, X2, X3, multB_in_gga(X1, X2, X4))
U21_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → MULTB_IN_GGA(X1, X2, X4)
U21_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U23_G(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U23_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U24_G(X1, X2, X3, pA_in_g(.(X4, X3)))
U23_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → PA_IN_G(.(X4, X3))
PA_IN_G(.(0, .(0, X1))) → U25_G(X1, pA_in_g(X1))
PA_IN_G(.(0, .(0, X1))) → PA_IN_G(X1)
U9_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U11_G(X1, X2, X3, pcA_in_g(.(X4, X3)))
U11_G(X1, X2, X3, pcA_out_g(.(X4, X3))) → U12_G(X1, X2, X3, multB_in_gga(s(s(X1)), X2, X5))
U11_G(X1, X2, X3, pcA_out_g(.(X4, X3))) → MULTB_IN_GGA(s(s(X1)), X2, X5)
U11_G(X1, X2, X3, pcA_out_g(.(X4, X3))) → U13_G(X1, X2, X3, multcB_in_gga(s(s(X1)), X2, X5))
U13_G(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → U14_G(X1, X2, X3, pA_in_g(.(X5, X3)))
U13_G(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → PA_IN_G(.(X5, X3))

The TRS R consists of the following rules:

pcA_in_g(.(X1, [])) → pcA_out_g(.(X1, []))
pcA_in_g(.(s(s(s(s(X1)))), .(X2, X3))) → U27_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(s(s(0)), .(X1, X2))) → U32_g(X1, X2, pcA_in_g(.(X1, X2)))
pcA_in_g(.(0, .(X1, []))) → pcA_out_g(.(0, .(X1, [])))
pcA_in_g(.(0, .(s(s(X1)), .(X2, X3)))) → U35_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(0, .(0, X1))) → U38_g(X1, pcA_in_g(X1))
U38_g(X1, pcA_out_g(X1)) → pcA_out_g(.(0, .(0, X1)))
U35_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U36_g(X1, X2, X3, multcB_in_gga(X1, X2, X4))
multcB_in_gga(X1, 0, 0) → multcB_out_gga(X1, 0, 0)
multcB_in_gga(X1, s(X2), X3) → U39_gga(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U39_gga(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U40_gga(X1, X2, X3, sumcD_in_gga(X4, X1, X3))
sumcD_in_gga(X1, 0, X1) → sumcD_out_gga(X1, 0, X1)
sumcD_in_gga(X1, s(X2), s(X3)) → U41_gga(X1, X2, X3, sumcD_in_gga(X1, X2, X3))
U41_gga(X1, X2, X3, sumcD_out_gga(X1, X2, X3)) → sumcD_out_gga(X1, s(X2), s(X3))
U40_gga(X1, X2, X3, sumcD_out_gga(X4, X1, X3)) → multcB_out_gga(X1, s(X2), X3)
U36_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U37_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U37_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → pcA_out_g(.(0, .(s(s(X1)), .(X2, X3))))
U32_g(X1, X2, pcA_out_g(.(X1, X2))) → U33_g(X1, X2, multcC_in_ga(X1, X3))
multcC_in_ga(0, 0) → multcC_out_ga(0, 0)
multcC_in_ga(s(X1), X2) → U42_ga(X1, X2, multcC_in_ga(X1, X2))
U42_ga(X1, X2, multcC_out_ga(X1, X2)) → multcC_out_ga(s(X1), X2)
U33_g(X1, X2, multcC_out_ga(X1, X3)) → U34_g(X1, X2, pcA_in_g(.(X3, X2)))
U34_g(X1, X2, pcA_out_g(.(X3, X2))) → pcA_out_g(.(s(s(0)), .(X1, X2)))
U27_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U28_g(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U28_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U29_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U29_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → U30_g(X1, X2, X3, multcB_in_gga(s(s(X1)), X2, X5))
U30_g(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → U31_g(X1, X2, X3, pcA_in_g(.(X5, X3)))
U31_g(X1, X2, X3, pcA_out_g(.(X5, X3))) → pcA_out_g(.(s(s(s(s(X1)))), .(X2, X3)))

The argument filtering Pi contains the following mapping:
pA_in_g(x1)  =  pA_in_g(x1)
.(x1, x2)  =  .(x1, x2)
s(x1)  =  s(x1)
pcA_in_g(x1)  =  pcA_in_g(x1)
[]  =  []
pcA_out_g(x1)  =  pcA_out_g(x1)
U27_g(x1, x2, x3, x4)  =  U27_g(x1, x2, x3, x4)
0  =  0
U32_g(x1, x2, x3)  =  U32_g(x1, x2, x3)
U35_g(x1, x2, x3, x4)  =  U35_g(x1, x2, x3, x4)
U38_g(x1, x2)  =  U38_g(x1, x2)
U36_g(x1, x2, x3, x4)  =  U36_g(x1, x2, x3, x4)
multcB_in_gga(x1, x2, x3)  =  multcB_in_gga(x1, x2)
multcB_out_gga(x1, x2, x3)  =  multcB_out_gga(x1, x2, x3)
U39_gga(x1, x2, x3, x4)  =  U39_gga(x1, x2, x4)
U40_gga(x1, x2, x3, x4)  =  U40_gga(x1, x2, x4)
sumcD_in_gga(x1, x2, x3)  =  sumcD_in_gga(x1, x2)
sumcD_out_gga(x1, x2, x3)  =  sumcD_out_gga(x1, x2, x3)
U41_gga(x1, x2, x3, x4)  =  U41_gga(x1, x2, x4)
U37_g(x1, x2, x3, x4)  =  U37_g(x1, x2, x3, x4)
U33_g(x1, x2, x3)  =  U33_g(x1, x2, x3)
multcC_in_ga(x1, x2)  =  multcC_in_ga(x1)
multcC_out_ga(x1, x2)  =  multcC_out_ga(x1, x2)
U42_ga(x1, x2, x3)  =  U42_ga(x1, x3)
U34_g(x1, x2, x3)  =  U34_g(x1, x2, x3)
U28_g(x1, x2, x3, x4)  =  U28_g(x1, x2, x3, x4)
U29_g(x1, x2, x3, x4)  =  U29_g(x1, x2, x3, x4)
U30_g(x1, x2, x3, x4)  =  U30_g(x1, x2, x3, x4)
U31_g(x1, x2, x3, x4)  =  U31_g(x1, x2, x3, x4)
multB_in_gga(x1, x2, x3)  =  multB_in_gga(x1, x2)
sumD_in_gga(x1, x2, x3)  =  sumD_in_gga(x1, x2)
multC_in_ga(x1, x2)  =  multC_in_ga(x1)
PA_IN_G(x1)  =  PA_IN_G(x1)
U6_G(x1, x2, x3, x4)  =  U6_G(x1, x2, x3, x4)
U7_G(x1, x2, x3, x4)  =  U7_G(x1, x2, x3, x4)
U8_G(x1, x2, x3, x4)  =  U8_G(x1, x2, x3, x4)
MULTB_IN_GGA(x1, x2, x3)  =  MULTB_IN_GGA(x1, x2)
U1_GGA(x1, x2, x3, x4)  =  U1_GGA(x1, x2, x4)
U2_GGA(x1, x2, x3, x4)  =  U2_GGA(x1, x2, x4)
U3_GGA(x1, x2, x3, x4)  =  U3_GGA(x1, x2, x4)
SUMD_IN_GGA(x1, x2, x3)  =  SUMD_IN_GGA(x1, x2)
U4_GGA(x1, x2, x3, x4)  =  U4_GGA(x1, x2, x4)
U9_G(x1, x2, x3, x4)  =  U9_G(x1, x2, x3, x4)
U10_G(x1, x2, x3, x4)  =  U10_G(x1, x2, x3, x4)
U15_G(x1, x2, x3)  =  U15_G(x1, x2, x3)
U16_G(x1, x2, x3)  =  U16_G(x1, x2, x3)
U17_G(x1, x2, x3)  =  U17_G(x1, x2, x3)
MULTC_IN_GA(x1, x2)  =  MULTC_IN_GA(x1)
U5_GA(x1, x2, x3)  =  U5_GA(x1, x3)
U18_G(x1, x2, x3)  =  U18_G(x1, x2, x3)
U19_G(x1, x2, x3)  =  U19_G(x1, x2, x3)
U20_G(x1, x2, x3, x4)  =  U20_G(x1, x2, x3, x4)
U21_G(x1, x2, x3, x4)  =  U21_G(x1, x2, x3, x4)
U22_G(x1, x2, x3, x4)  =  U22_G(x1, x2, x3, x4)
U23_G(x1, x2, x3, x4)  =  U23_G(x1, x2, x3, x4)
U24_G(x1, x2, x3, x4)  =  U24_G(x1, x2, x3, x4)
U25_G(x1, x2)  =  U25_G(x1, x2)
U11_G(x1, x2, x3, x4)  =  U11_G(x1, x2, x3, x4)
U12_G(x1, x2, x3, x4)  =  U12_G(x1, x2, x3, x4)
U13_G(x1, x2, x3, x4)  =  U13_G(x1, x2, x3, x4)
U14_G(x1, x2, x3, x4)  =  U14_G(x1, x2, x3, x4)

We have to consider all (P,R,Pi)-chains

Infinitary Constructor Rewriting Termination of PiDP implies Termination of TRIPLES

(4) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → U6_G(X1, X2, X3, pA_in_g(.(X1, .(X2, X3))))
PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → PA_IN_G(.(X1, .(X2, X3)))
PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → U7_G(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
U7_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U8_G(X1, X2, X3, multB_in_gga(X1, X2, X4))
U7_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → MULTB_IN_GGA(X1, X2, X4)
MULTB_IN_GGA(X1, s(X2), X3) → U1_GGA(X1, X2, X3, multB_in_gga(X1, X2, X4))
MULTB_IN_GGA(X1, s(X2), X3) → MULTB_IN_GGA(X1, X2, X4)
MULTB_IN_GGA(X1, s(X2), X3) → U2_GGA(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U2_GGA(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U3_GGA(X1, X2, X3, sumD_in_gga(X4, X1, X3))
U2_GGA(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → SUMD_IN_GGA(X4, X1, X3)
SUMD_IN_GGA(X1, s(X2), s(X3)) → U4_GGA(X1, X2, X3, sumD_in_gga(X1, X2, X3))
SUMD_IN_GGA(X1, s(X2), s(X3)) → SUMD_IN_GGA(X1, X2, X3)
U7_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U9_G(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U9_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U10_G(X1, X2, X3, pA_in_g(.(X4, X3)))
U9_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → PA_IN_G(.(X4, X3))
PA_IN_G(.(s(s(0)), .(X1, X2))) → U15_G(X1, X2, pA_in_g(.(X1, X2)))
PA_IN_G(.(s(s(0)), .(X1, X2))) → PA_IN_G(.(X1, X2))
PA_IN_G(.(s(s(0)), .(X1, X2))) → U16_G(X1, X2, pcA_in_g(.(X1, X2)))
U16_G(X1, X2, pcA_out_g(.(X1, X2))) → U17_G(X1, X2, multC_in_ga(X1, X3))
U16_G(X1, X2, pcA_out_g(.(X1, X2))) → MULTC_IN_GA(X1, X3)
MULTC_IN_GA(s(X1), X2) → U5_GA(X1, X2, multC_in_ga(X1, X3))
MULTC_IN_GA(s(X1), X2) → MULTC_IN_GA(X1, X3)
U16_G(X1, X2, pcA_out_g(.(X1, X2))) → U18_G(X1, X2, multcC_in_ga(X1, X3))
U18_G(X1, X2, multcC_out_ga(X1, X3)) → U19_G(X1, X2, pA_in_g(.(X3, X2)))
U18_G(X1, X2, multcC_out_ga(X1, X3)) → PA_IN_G(.(X3, X2))
PA_IN_G(.(0, .(s(s(X1)), .(X2, X3)))) → U20_G(X1, X2, X3, pA_in_g(.(X1, .(X2, X3))))
PA_IN_G(.(0, .(s(s(X1)), .(X2, X3)))) → PA_IN_G(.(X1, .(X2, X3)))
PA_IN_G(.(0, .(s(s(X1)), .(X2, X3)))) → U21_G(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
U21_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U22_G(X1, X2, X3, multB_in_gga(X1, X2, X4))
U21_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → MULTB_IN_GGA(X1, X2, X4)
U21_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U23_G(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U23_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U24_G(X1, X2, X3, pA_in_g(.(X4, X3)))
U23_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → PA_IN_G(.(X4, X3))
PA_IN_G(.(0, .(0, X1))) → U25_G(X1, pA_in_g(X1))
PA_IN_G(.(0, .(0, X1))) → PA_IN_G(X1)
U9_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U11_G(X1, X2, X3, pcA_in_g(.(X4, X3)))
U11_G(X1, X2, X3, pcA_out_g(.(X4, X3))) → U12_G(X1, X2, X3, multB_in_gga(s(s(X1)), X2, X5))
U11_G(X1, X2, X3, pcA_out_g(.(X4, X3))) → MULTB_IN_GGA(s(s(X1)), X2, X5)
U11_G(X1, X2, X3, pcA_out_g(.(X4, X3))) → U13_G(X1, X2, X3, multcB_in_gga(s(s(X1)), X2, X5))
U13_G(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → U14_G(X1, X2, X3, pA_in_g(.(X5, X3)))
U13_G(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → PA_IN_G(.(X5, X3))

The TRS R consists of the following rules:

pcA_in_g(.(X1, [])) → pcA_out_g(.(X1, []))
pcA_in_g(.(s(s(s(s(X1)))), .(X2, X3))) → U27_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(s(s(0)), .(X1, X2))) → U32_g(X1, X2, pcA_in_g(.(X1, X2)))
pcA_in_g(.(0, .(X1, []))) → pcA_out_g(.(0, .(X1, [])))
pcA_in_g(.(0, .(s(s(X1)), .(X2, X3)))) → U35_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(0, .(0, X1))) → U38_g(X1, pcA_in_g(X1))
U38_g(X1, pcA_out_g(X1)) → pcA_out_g(.(0, .(0, X1)))
U35_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U36_g(X1, X2, X3, multcB_in_gga(X1, X2, X4))
multcB_in_gga(X1, 0, 0) → multcB_out_gga(X1, 0, 0)
multcB_in_gga(X1, s(X2), X3) → U39_gga(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U39_gga(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U40_gga(X1, X2, X3, sumcD_in_gga(X4, X1, X3))
sumcD_in_gga(X1, 0, X1) → sumcD_out_gga(X1, 0, X1)
sumcD_in_gga(X1, s(X2), s(X3)) → U41_gga(X1, X2, X3, sumcD_in_gga(X1, X2, X3))
U41_gga(X1, X2, X3, sumcD_out_gga(X1, X2, X3)) → sumcD_out_gga(X1, s(X2), s(X3))
U40_gga(X1, X2, X3, sumcD_out_gga(X4, X1, X3)) → multcB_out_gga(X1, s(X2), X3)
U36_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U37_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U37_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → pcA_out_g(.(0, .(s(s(X1)), .(X2, X3))))
U32_g(X1, X2, pcA_out_g(.(X1, X2))) → U33_g(X1, X2, multcC_in_ga(X1, X3))
multcC_in_ga(0, 0) → multcC_out_ga(0, 0)
multcC_in_ga(s(X1), X2) → U42_ga(X1, X2, multcC_in_ga(X1, X2))
U42_ga(X1, X2, multcC_out_ga(X1, X2)) → multcC_out_ga(s(X1), X2)
U33_g(X1, X2, multcC_out_ga(X1, X3)) → U34_g(X1, X2, pcA_in_g(.(X3, X2)))
U34_g(X1, X2, pcA_out_g(.(X3, X2))) → pcA_out_g(.(s(s(0)), .(X1, X2)))
U27_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U28_g(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U28_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U29_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U29_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → U30_g(X1, X2, X3, multcB_in_gga(s(s(X1)), X2, X5))
U30_g(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → U31_g(X1, X2, X3, pcA_in_g(.(X5, X3)))
U31_g(X1, X2, X3, pcA_out_g(.(X5, X3))) → pcA_out_g(.(s(s(s(s(X1)))), .(X2, X3)))

The argument filtering Pi contains the following mapping:
pA_in_g(x1)  =  pA_in_g(x1)
.(x1, x2)  =  .(x1, x2)
s(x1)  =  s(x1)
pcA_in_g(x1)  =  pcA_in_g(x1)
[]  =  []
pcA_out_g(x1)  =  pcA_out_g(x1)
U27_g(x1, x2, x3, x4)  =  U27_g(x1, x2, x3, x4)
0  =  0
U32_g(x1, x2, x3)  =  U32_g(x1, x2, x3)
U35_g(x1, x2, x3, x4)  =  U35_g(x1, x2, x3, x4)
U38_g(x1, x2)  =  U38_g(x1, x2)
U36_g(x1, x2, x3, x4)  =  U36_g(x1, x2, x3, x4)
multcB_in_gga(x1, x2, x3)  =  multcB_in_gga(x1, x2)
multcB_out_gga(x1, x2, x3)  =  multcB_out_gga(x1, x2, x3)
U39_gga(x1, x2, x3, x4)  =  U39_gga(x1, x2, x4)
U40_gga(x1, x2, x3, x4)  =  U40_gga(x1, x2, x4)
sumcD_in_gga(x1, x2, x3)  =  sumcD_in_gga(x1, x2)
sumcD_out_gga(x1, x2, x3)  =  sumcD_out_gga(x1, x2, x3)
U41_gga(x1, x2, x3, x4)  =  U41_gga(x1, x2, x4)
U37_g(x1, x2, x3, x4)  =  U37_g(x1, x2, x3, x4)
U33_g(x1, x2, x3)  =  U33_g(x1, x2, x3)
multcC_in_ga(x1, x2)  =  multcC_in_ga(x1)
multcC_out_ga(x1, x2)  =  multcC_out_ga(x1, x2)
U42_ga(x1, x2, x3)  =  U42_ga(x1, x3)
U34_g(x1, x2, x3)  =  U34_g(x1, x2, x3)
U28_g(x1, x2, x3, x4)  =  U28_g(x1, x2, x3, x4)
U29_g(x1, x2, x3, x4)  =  U29_g(x1, x2, x3, x4)
U30_g(x1, x2, x3, x4)  =  U30_g(x1, x2, x3, x4)
U31_g(x1, x2, x3, x4)  =  U31_g(x1, x2, x3, x4)
multB_in_gga(x1, x2, x3)  =  multB_in_gga(x1, x2)
sumD_in_gga(x1, x2, x3)  =  sumD_in_gga(x1, x2)
multC_in_ga(x1, x2)  =  multC_in_ga(x1)
PA_IN_G(x1)  =  PA_IN_G(x1)
U6_G(x1, x2, x3, x4)  =  U6_G(x1, x2, x3, x4)
U7_G(x1, x2, x3, x4)  =  U7_G(x1, x2, x3, x4)
U8_G(x1, x2, x3, x4)  =  U8_G(x1, x2, x3, x4)
MULTB_IN_GGA(x1, x2, x3)  =  MULTB_IN_GGA(x1, x2)
U1_GGA(x1, x2, x3, x4)  =  U1_GGA(x1, x2, x4)
U2_GGA(x1, x2, x3, x4)  =  U2_GGA(x1, x2, x4)
U3_GGA(x1, x2, x3, x4)  =  U3_GGA(x1, x2, x4)
SUMD_IN_GGA(x1, x2, x3)  =  SUMD_IN_GGA(x1, x2)
U4_GGA(x1, x2, x3, x4)  =  U4_GGA(x1, x2, x4)
U9_G(x1, x2, x3, x4)  =  U9_G(x1, x2, x3, x4)
U10_G(x1, x2, x3, x4)  =  U10_G(x1, x2, x3, x4)
U15_G(x1, x2, x3)  =  U15_G(x1, x2, x3)
U16_G(x1, x2, x3)  =  U16_G(x1, x2, x3)
U17_G(x1, x2, x3)  =  U17_G(x1, x2, x3)
MULTC_IN_GA(x1, x2)  =  MULTC_IN_GA(x1)
U5_GA(x1, x2, x3)  =  U5_GA(x1, x3)
U18_G(x1, x2, x3)  =  U18_G(x1, x2, x3)
U19_G(x1, x2, x3)  =  U19_G(x1, x2, x3)
U20_G(x1, x2, x3, x4)  =  U20_G(x1, x2, x3, x4)
U21_G(x1, x2, x3, x4)  =  U21_G(x1, x2, x3, x4)
U22_G(x1, x2, x3, x4)  =  U22_G(x1, x2, x3, x4)
U23_G(x1, x2, x3, x4)  =  U23_G(x1, x2, x3, x4)
U24_G(x1, x2, x3, x4)  =  U24_G(x1, x2, x3, x4)
U25_G(x1, x2)  =  U25_G(x1, x2)
U11_G(x1, x2, x3, x4)  =  U11_G(x1, x2, x3, x4)
U12_G(x1, x2, x3, x4)  =  U12_G(x1, x2, x3, x4)
U13_G(x1, x2, x3, x4)  =  U13_G(x1, x2, x3, x4)
U14_G(x1, x2, x3, x4)  =  U14_G(x1, x2, x3, x4)

We have to consider all (P,R,Pi)-chains

(5) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 4 SCCs with 22 less nodes.

(6) Complex Obligation (AND)

(7) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

MULTC_IN_GA(s(X1), X2) → MULTC_IN_GA(X1, X3)

The TRS R consists of the following rules:

pcA_in_g(.(X1, [])) → pcA_out_g(.(X1, []))
pcA_in_g(.(s(s(s(s(X1)))), .(X2, X3))) → U27_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(s(s(0)), .(X1, X2))) → U32_g(X1, X2, pcA_in_g(.(X1, X2)))
pcA_in_g(.(0, .(X1, []))) → pcA_out_g(.(0, .(X1, [])))
pcA_in_g(.(0, .(s(s(X1)), .(X2, X3)))) → U35_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(0, .(0, X1))) → U38_g(X1, pcA_in_g(X1))
U38_g(X1, pcA_out_g(X1)) → pcA_out_g(.(0, .(0, X1)))
U35_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U36_g(X1, X2, X3, multcB_in_gga(X1, X2, X4))
multcB_in_gga(X1, 0, 0) → multcB_out_gga(X1, 0, 0)
multcB_in_gga(X1, s(X2), X3) → U39_gga(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U39_gga(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U40_gga(X1, X2, X3, sumcD_in_gga(X4, X1, X3))
sumcD_in_gga(X1, 0, X1) → sumcD_out_gga(X1, 0, X1)
sumcD_in_gga(X1, s(X2), s(X3)) → U41_gga(X1, X2, X3, sumcD_in_gga(X1, X2, X3))
U41_gga(X1, X2, X3, sumcD_out_gga(X1, X2, X3)) → sumcD_out_gga(X1, s(X2), s(X3))
U40_gga(X1, X2, X3, sumcD_out_gga(X4, X1, X3)) → multcB_out_gga(X1, s(X2), X3)
U36_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U37_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U37_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → pcA_out_g(.(0, .(s(s(X1)), .(X2, X3))))
U32_g(X1, X2, pcA_out_g(.(X1, X2))) → U33_g(X1, X2, multcC_in_ga(X1, X3))
multcC_in_ga(0, 0) → multcC_out_ga(0, 0)
multcC_in_ga(s(X1), X2) → U42_ga(X1, X2, multcC_in_ga(X1, X2))
U42_ga(X1, X2, multcC_out_ga(X1, X2)) → multcC_out_ga(s(X1), X2)
U33_g(X1, X2, multcC_out_ga(X1, X3)) → U34_g(X1, X2, pcA_in_g(.(X3, X2)))
U34_g(X1, X2, pcA_out_g(.(X3, X2))) → pcA_out_g(.(s(s(0)), .(X1, X2)))
U27_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U28_g(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U28_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U29_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U29_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → U30_g(X1, X2, X3, multcB_in_gga(s(s(X1)), X2, X5))
U30_g(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → U31_g(X1, X2, X3, pcA_in_g(.(X5, X3)))
U31_g(X1, X2, X3, pcA_out_g(.(X5, X3))) → pcA_out_g(.(s(s(s(s(X1)))), .(X2, X3)))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
s(x1)  =  s(x1)
pcA_in_g(x1)  =  pcA_in_g(x1)
[]  =  []
pcA_out_g(x1)  =  pcA_out_g(x1)
U27_g(x1, x2, x3, x4)  =  U27_g(x1, x2, x3, x4)
0  =  0
U32_g(x1, x2, x3)  =  U32_g(x1, x2, x3)
U35_g(x1, x2, x3, x4)  =  U35_g(x1, x2, x3, x4)
U38_g(x1, x2)  =  U38_g(x1, x2)
U36_g(x1, x2, x3, x4)  =  U36_g(x1, x2, x3, x4)
multcB_in_gga(x1, x2, x3)  =  multcB_in_gga(x1, x2)
multcB_out_gga(x1, x2, x3)  =  multcB_out_gga(x1, x2, x3)
U39_gga(x1, x2, x3, x4)  =  U39_gga(x1, x2, x4)
U40_gga(x1, x2, x3, x4)  =  U40_gga(x1, x2, x4)
sumcD_in_gga(x1, x2, x3)  =  sumcD_in_gga(x1, x2)
sumcD_out_gga(x1, x2, x3)  =  sumcD_out_gga(x1, x2, x3)
U41_gga(x1, x2, x3, x4)  =  U41_gga(x1, x2, x4)
U37_g(x1, x2, x3, x4)  =  U37_g(x1, x2, x3, x4)
U33_g(x1, x2, x3)  =  U33_g(x1, x2, x3)
multcC_in_ga(x1, x2)  =  multcC_in_ga(x1)
multcC_out_ga(x1, x2)  =  multcC_out_ga(x1, x2)
U42_ga(x1, x2, x3)  =  U42_ga(x1, x3)
U34_g(x1, x2, x3)  =  U34_g(x1, x2, x3)
U28_g(x1, x2, x3, x4)  =  U28_g(x1, x2, x3, x4)
U29_g(x1, x2, x3, x4)  =  U29_g(x1, x2, x3, x4)
U30_g(x1, x2, x3, x4)  =  U30_g(x1, x2, x3, x4)
U31_g(x1, x2, x3, x4)  =  U31_g(x1, x2, x3, x4)
MULTC_IN_GA(x1, x2)  =  MULTC_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(8) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

MULTC_IN_GA(s(X1), X2) → MULTC_IN_GA(X1, X3)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
MULTC_IN_GA(x1, x2)  =  MULTC_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(10) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(11) Obligation:

Q DP problem:
The TRS P consists of the following rules:

MULTC_IN_GA(s(X1)) → MULTC_IN_GA(X1)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(12) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • MULTC_IN_GA(s(X1)) → MULTC_IN_GA(X1)
    The graph contains the following edges 1 > 1

(13) YES

(14) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

SUMD_IN_GGA(X1, s(X2), s(X3)) → SUMD_IN_GGA(X1, X2, X3)

The TRS R consists of the following rules:

pcA_in_g(.(X1, [])) → pcA_out_g(.(X1, []))
pcA_in_g(.(s(s(s(s(X1)))), .(X2, X3))) → U27_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(s(s(0)), .(X1, X2))) → U32_g(X1, X2, pcA_in_g(.(X1, X2)))
pcA_in_g(.(0, .(X1, []))) → pcA_out_g(.(0, .(X1, [])))
pcA_in_g(.(0, .(s(s(X1)), .(X2, X3)))) → U35_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(0, .(0, X1))) → U38_g(X1, pcA_in_g(X1))
U38_g(X1, pcA_out_g(X1)) → pcA_out_g(.(0, .(0, X1)))
U35_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U36_g(X1, X2, X3, multcB_in_gga(X1, X2, X4))
multcB_in_gga(X1, 0, 0) → multcB_out_gga(X1, 0, 0)
multcB_in_gga(X1, s(X2), X3) → U39_gga(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U39_gga(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U40_gga(X1, X2, X3, sumcD_in_gga(X4, X1, X3))
sumcD_in_gga(X1, 0, X1) → sumcD_out_gga(X1, 0, X1)
sumcD_in_gga(X1, s(X2), s(X3)) → U41_gga(X1, X2, X3, sumcD_in_gga(X1, X2, X3))
U41_gga(X1, X2, X3, sumcD_out_gga(X1, X2, X3)) → sumcD_out_gga(X1, s(X2), s(X3))
U40_gga(X1, X2, X3, sumcD_out_gga(X4, X1, X3)) → multcB_out_gga(X1, s(X2), X3)
U36_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U37_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U37_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → pcA_out_g(.(0, .(s(s(X1)), .(X2, X3))))
U32_g(X1, X2, pcA_out_g(.(X1, X2))) → U33_g(X1, X2, multcC_in_ga(X1, X3))
multcC_in_ga(0, 0) → multcC_out_ga(0, 0)
multcC_in_ga(s(X1), X2) → U42_ga(X1, X2, multcC_in_ga(X1, X2))
U42_ga(X1, X2, multcC_out_ga(X1, X2)) → multcC_out_ga(s(X1), X2)
U33_g(X1, X2, multcC_out_ga(X1, X3)) → U34_g(X1, X2, pcA_in_g(.(X3, X2)))
U34_g(X1, X2, pcA_out_g(.(X3, X2))) → pcA_out_g(.(s(s(0)), .(X1, X2)))
U27_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U28_g(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U28_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U29_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U29_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → U30_g(X1, X2, X3, multcB_in_gga(s(s(X1)), X2, X5))
U30_g(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → U31_g(X1, X2, X3, pcA_in_g(.(X5, X3)))
U31_g(X1, X2, X3, pcA_out_g(.(X5, X3))) → pcA_out_g(.(s(s(s(s(X1)))), .(X2, X3)))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
s(x1)  =  s(x1)
pcA_in_g(x1)  =  pcA_in_g(x1)
[]  =  []
pcA_out_g(x1)  =  pcA_out_g(x1)
U27_g(x1, x2, x3, x4)  =  U27_g(x1, x2, x3, x4)
0  =  0
U32_g(x1, x2, x3)  =  U32_g(x1, x2, x3)
U35_g(x1, x2, x3, x4)  =  U35_g(x1, x2, x3, x4)
U38_g(x1, x2)  =  U38_g(x1, x2)
U36_g(x1, x2, x3, x4)  =  U36_g(x1, x2, x3, x4)
multcB_in_gga(x1, x2, x3)  =  multcB_in_gga(x1, x2)
multcB_out_gga(x1, x2, x3)  =  multcB_out_gga(x1, x2, x3)
U39_gga(x1, x2, x3, x4)  =  U39_gga(x1, x2, x4)
U40_gga(x1, x2, x3, x4)  =  U40_gga(x1, x2, x4)
sumcD_in_gga(x1, x2, x3)  =  sumcD_in_gga(x1, x2)
sumcD_out_gga(x1, x2, x3)  =  sumcD_out_gga(x1, x2, x3)
U41_gga(x1, x2, x3, x4)  =  U41_gga(x1, x2, x4)
U37_g(x1, x2, x3, x4)  =  U37_g(x1, x2, x3, x4)
U33_g(x1, x2, x3)  =  U33_g(x1, x2, x3)
multcC_in_ga(x1, x2)  =  multcC_in_ga(x1)
multcC_out_ga(x1, x2)  =  multcC_out_ga(x1, x2)
U42_ga(x1, x2, x3)  =  U42_ga(x1, x3)
U34_g(x1, x2, x3)  =  U34_g(x1, x2, x3)
U28_g(x1, x2, x3, x4)  =  U28_g(x1, x2, x3, x4)
U29_g(x1, x2, x3, x4)  =  U29_g(x1, x2, x3, x4)
U30_g(x1, x2, x3, x4)  =  U30_g(x1, x2, x3, x4)
U31_g(x1, x2, x3, x4)  =  U31_g(x1, x2, x3, x4)
SUMD_IN_GGA(x1, x2, x3)  =  SUMD_IN_GGA(x1, x2)

We have to consider all (P,R,Pi)-chains

(15) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

SUMD_IN_GGA(X1, s(X2), s(X3)) → SUMD_IN_GGA(X1, X2, X3)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
SUMD_IN_GGA(x1, x2, x3)  =  SUMD_IN_GGA(x1, x2)

We have to consider all (P,R,Pi)-chains

(17) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(18) Obligation:

Q DP problem:
The TRS P consists of the following rules:

SUMD_IN_GGA(X1, s(X2)) → SUMD_IN_GGA(X1, X2)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(19) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • SUMD_IN_GGA(X1, s(X2)) → SUMD_IN_GGA(X1, X2)
    The graph contains the following edges 1 >= 1, 2 > 2

(20) YES

(21) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

MULTB_IN_GGA(X1, s(X2), X3) → MULTB_IN_GGA(X1, X2, X4)

The TRS R consists of the following rules:

pcA_in_g(.(X1, [])) → pcA_out_g(.(X1, []))
pcA_in_g(.(s(s(s(s(X1)))), .(X2, X3))) → U27_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(s(s(0)), .(X1, X2))) → U32_g(X1, X2, pcA_in_g(.(X1, X2)))
pcA_in_g(.(0, .(X1, []))) → pcA_out_g(.(0, .(X1, [])))
pcA_in_g(.(0, .(s(s(X1)), .(X2, X3)))) → U35_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(0, .(0, X1))) → U38_g(X1, pcA_in_g(X1))
U38_g(X1, pcA_out_g(X1)) → pcA_out_g(.(0, .(0, X1)))
U35_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U36_g(X1, X2, X3, multcB_in_gga(X1, X2, X4))
multcB_in_gga(X1, 0, 0) → multcB_out_gga(X1, 0, 0)
multcB_in_gga(X1, s(X2), X3) → U39_gga(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U39_gga(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U40_gga(X1, X2, X3, sumcD_in_gga(X4, X1, X3))
sumcD_in_gga(X1, 0, X1) → sumcD_out_gga(X1, 0, X1)
sumcD_in_gga(X1, s(X2), s(X3)) → U41_gga(X1, X2, X3, sumcD_in_gga(X1, X2, X3))
U41_gga(X1, X2, X3, sumcD_out_gga(X1, X2, X3)) → sumcD_out_gga(X1, s(X2), s(X3))
U40_gga(X1, X2, X3, sumcD_out_gga(X4, X1, X3)) → multcB_out_gga(X1, s(X2), X3)
U36_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U37_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U37_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → pcA_out_g(.(0, .(s(s(X1)), .(X2, X3))))
U32_g(X1, X2, pcA_out_g(.(X1, X2))) → U33_g(X1, X2, multcC_in_ga(X1, X3))
multcC_in_ga(0, 0) → multcC_out_ga(0, 0)
multcC_in_ga(s(X1), X2) → U42_ga(X1, X2, multcC_in_ga(X1, X2))
U42_ga(X1, X2, multcC_out_ga(X1, X2)) → multcC_out_ga(s(X1), X2)
U33_g(X1, X2, multcC_out_ga(X1, X3)) → U34_g(X1, X2, pcA_in_g(.(X3, X2)))
U34_g(X1, X2, pcA_out_g(.(X3, X2))) → pcA_out_g(.(s(s(0)), .(X1, X2)))
U27_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U28_g(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U28_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U29_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U29_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → U30_g(X1, X2, X3, multcB_in_gga(s(s(X1)), X2, X5))
U30_g(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → U31_g(X1, X2, X3, pcA_in_g(.(X5, X3)))
U31_g(X1, X2, X3, pcA_out_g(.(X5, X3))) → pcA_out_g(.(s(s(s(s(X1)))), .(X2, X3)))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
s(x1)  =  s(x1)
pcA_in_g(x1)  =  pcA_in_g(x1)
[]  =  []
pcA_out_g(x1)  =  pcA_out_g(x1)
U27_g(x1, x2, x3, x4)  =  U27_g(x1, x2, x3, x4)
0  =  0
U32_g(x1, x2, x3)  =  U32_g(x1, x2, x3)
U35_g(x1, x2, x3, x4)  =  U35_g(x1, x2, x3, x4)
U38_g(x1, x2)  =  U38_g(x1, x2)
U36_g(x1, x2, x3, x4)  =  U36_g(x1, x2, x3, x4)
multcB_in_gga(x1, x2, x3)  =  multcB_in_gga(x1, x2)
multcB_out_gga(x1, x2, x3)  =  multcB_out_gga(x1, x2, x3)
U39_gga(x1, x2, x3, x4)  =  U39_gga(x1, x2, x4)
U40_gga(x1, x2, x3, x4)  =  U40_gga(x1, x2, x4)
sumcD_in_gga(x1, x2, x3)  =  sumcD_in_gga(x1, x2)
sumcD_out_gga(x1, x2, x3)  =  sumcD_out_gga(x1, x2, x3)
U41_gga(x1, x2, x3, x4)  =  U41_gga(x1, x2, x4)
U37_g(x1, x2, x3, x4)  =  U37_g(x1, x2, x3, x4)
U33_g(x1, x2, x3)  =  U33_g(x1, x2, x3)
multcC_in_ga(x1, x2)  =  multcC_in_ga(x1)
multcC_out_ga(x1, x2)  =  multcC_out_ga(x1, x2)
U42_ga(x1, x2, x3)  =  U42_ga(x1, x3)
U34_g(x1, x2, x3)  =  U34_g(x1, x2, x3)
U28_g(x1, x2, x3, x4)  =  U28_g(x1, x2, x3, x4)
U29_g(x1, x2, x3, x4)  =  U29_g(x1, x2, x3, x4)
U30_g(x1, x2, x3, x4)  =  U30_g(x1, x2, x3, x4)
U31_g(x1, x2, x3, x4)  =  U31_g(x1, x2, x3, x4)
MULTB_IN_GGA(x1, x2, x3)  =  MULTB_IN_GGA(x1, x2)

We have to consider all (P,R,Pi)-chains

(22) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(23) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

MULTB_IN_GGA(X1, s(X2), X3) → MULTB_IN_GGA(X1, X2, X4)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
MULTB_IN_GGA(x1, x2, x3)  =  MULTB_IN_GGA(x1, x2)

We have to consider all (P,R,Pi)-chains

(24) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(25) Obligation:

Q DP problem:
The TRS P consists of the following rules:

MULTB_IN_GGA(X1, s(X2)) → MULTB_IN_GGA(X1, X2)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(26) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • MULTB_IN_GGA(X1, s(X2)) → MULTB_IN_GGA(X1, X2)
    The graph contains the following edges 1 >= 1, 2 > 2

(27) YES

(28) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → U7_G(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
U7_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U9_G(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U9_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → PA_IN_G(.(X4, X3))
PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → PA_IN_G(.(X1, .(X2, X3)))
PA_IN_G(.(s(s(0)), .(X1, X2))) → PA_IN_G(.(X1, X2))
PA_IN_G(.(s(s(0)), .(X1, X2))) → U16_G(X1, X2, pcA_in_g(.(X1, X2)))
U16_G(X1, X2, pcA_out_g(.(X1, X2))) → U18_G(X1, X2, multcC_in_ga(X1, X3))
U18_G(X1, X2, multcC_out_ga(X1, X3)) → PA_IN_G(.(X3, X2))
PA_IN_G(.(0, .(s(s(X1)), .(X2, X3)))) → PA_IN_G(.(X1, .(X2, X3)))
PA_IN_G(.(0, .(s(s(X1)), .(X2, X3)))) → U21_G(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
U21_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U23_G(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U23_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → PA_IN_G(.(X4, X3))
PA_IN_G(.(0, .(0, X1))) → PA_IN_G(X1)
U9_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U11_G(X1, X2, X3, pcA_in_g(.(X4, X3)))
U11_G(X1, X2, X3, pcA_out_g(.(X4, X3))) → U13_G(X1, X2, X3, multcB_in_gga(s(s(X1)), X2, X5))
U13_G(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → PA_IN_G(.(X5, X3))

The TRS R consists of the following rules:

pcA_in_g(.(X1, [])) → pcA_out_g(.(X1, []))
pcA_in_g(.(s(s(s(s(X1)))), .(X2, X3))) → U27_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(s(s(0)), .(X1, X2))) → U32_g(X1, X2, pcA_in_g(.(X1, X2)))
pcA_in_g(.(0, .(X1, []))) → pcA_out_g(.(0, .(X1, [])))
pcA_in_g(.(0, .(s(s(X1)), .(X2, X3)))) → U35_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(0, .(0, X1))) → U38_g(X1, pcA_in_g(X1))
U38_g(X1, pcA_out_g(X1)) → pcA_out_g(.(0, .(0, X1)))
U35_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U36_g(X1, X2, X3, multcB_in_gga(X1, X2, X4))
multcB_in_gga(X1, 0, 0) → multcB_out_gga(X1, 0, 0)
multcB_in_gga(X1, s(X2), X3) → U39_gga(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U39_gga(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U40_gga(X1, X2, X3, sumcD_in_gga(X4, X1, X3))
sumcD_in_gga(X1, 0, X1) → sumcD_out_gga(X1, 0, X1)
sumcD_in_gga(X1, s(X2), s(X3)) → U41_gga(X1, X2, X3, sumcD_in_gga(X1, X2, X3))
U41_gga(X1, X2, X3, sumcD_out_gga(X1, X2, X3)) → sumcD_out_gga(X1, s(X2), s(X3))
U40_gga(X1, X2, X3, sumcD_out_gga(X4, X1, X3)) → multcB_out_gga(X1, s(X2), X3)
U36_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U37_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U37_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → pcA_out_g(.(0, .(s(s(X1)), .(X2, X3))))
U32_g(X1, X2, pcA_out_g(.(X1, X2))) → U33_g(X1, X2, multcC_in_ga(X1, X3))
multcC_in_ga(0, 0) → multcC_out_ga(0, 0)
multcC_in_ga(s(X1), X2) → U42_ga(X1, X2, multcC_in_ga(X1, X2))
U42_ga(X1, X2, multcC_out_ga(X1, X2)) → multcC_out_ga(s(X1), X2)
U33_g(X1, X2, multcC_out_ga(X1, X3)) → U34_g(X1, X2, pcA_in_g(.(X3, X2)))
U34_g(X1, X2, pcA_out_g(.(X3, X2))) → pcA_out_g(.(s(s(0)), .(X1, X2)))
U27_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U28_g(X1, X2, X3, multcB_in_gga(X1, X2, X4))
U28_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U29_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U29_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → U30_g(X1, X2, X3, multcB_in_gga(s(s(X1)), X2, X5))
U30_g(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → U31_g(X1, X2, X3, pcA_in_g(.(X5, X3)))
U31_g(X1, X2, X3, pcA_out_g(.(X5, X3))) → pcA_out_g(.(s(s(s(s(X1)))), .(X2, X3)))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
s(x1)  =  s(x1)
pcA_in_g(x1)  =  pcA_in_g(x1)
[]  =  []
pcA_out_g(x1)  =  pcA_out_g(x1)
U27_g(x1, x2, x3, x4)  =  U27_g(x1, x2, x3, x4)
0  =  0
U32_g(x1, x2, x3)  =  U32_g(x1, x2, x3)
U35_g(x1, x2, x3, x4)  =  U35_g(x1, x2, x3, x4)
U38_g(x1, x2)  =  U38_g(x1, x2)
U36_g(x1, x2, x3, x4)  =  U36_g(x1, x2, x3, x4)
multcB_in_gga(x1, x2, x3)  =  multcB_in_gga(x1, x2)
multcB_out_gga(x1, x2, x3)  =  multcB_out_gga(x1, x2, x3)
U39_gga(x1, x2, x3, x4)  =  U39_gga(x1, x2, x4)
U40_gga(x1, x2, x3, x4)  =  U40_gga(x1, x2, x4)
sumcD_in_gga(x1, x2, x3)  =  sumcD_in_gga(x1, x2)
sumcD_out_gga(x1, x2, x3)  =  sumcD_out_gga(x1, x2, x3)
U41_gga(x1, x2, x3, x4)  =  U41_gga(x1, x2, x4)
U37_g(x1, x2, x3, x4)  =  U37_g(x1, x2, x3, x4)
U33_g(x1, x2, x3)  =  U33_g(x1, x2, x3)
multcC_in_ga(x1, x2)  =  multcC_in_ga(x1)
multcC_out_ga(x1, x2)  =  multcC_out_ga(x1, x2)
U42_ga(x1, x2, x3)  =  U42_ga(x1, x3)
U34_g(x1, x2, x3)  =  U34_g(x1, x2, x3)
U28_g(x1, x2, x3, x4)  =  U28_g(x1, x2, x3, x4)
U29_g(x1, x2, x3, x4)  =  U29_g(x1, x2, x3, x4)
U30_g(x1, x2, x3, x4)  =  U30_g(x1, x2, x3, x4)
U31_g(x1, x2, x3, x4)  =  U31_g(x1, x2, x3, x4)
PA_IN_G(x1)  =  PA_IN_G(x1)
U7_G(x1, x2, x3, x4)  =  U7_G(x1, x2, x3, x4)
U9_G(x1, x2, x3, x4)  =  U9_G(x1, x2, x3, x4)
U16_G(x1, x2, x3)  =  U16_G(x1, x2, x3)
U18_G(x1, x2, x3)  =  U18_G(x1, x2, x3)
U21_G(x1, x2, x3, x4)  =  U21_G(x1, x2, x3, x4)
U23_G(x1, x2, x3, x4)  =  U23_G(x1, x2, x3, x4)
U11_G(x1, x2, x3, x4)  =  U11_G(x1, x2, x3, x4)
U13_G(x1, x2, x3, x4)  =  U13_G(x1, x2, x3, x4)

We have to consider all (P,R,Pi)-chains

(29) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(30) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → U7_G(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
U7_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U9_G(X1, X2, X3, multcB_in_gga(X1, X2))
U9_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → PA_IN_G(.(X4, X3))
PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → PA_IN_G(.(X1, .(X2, X3)))
PA_IN_G(.(s(s(0)), .(X1, X2))) → PA_IN_G(.(X1, X2))
PA_IN_G(.(s(s(0)), .(X1, X2))) → U16_G(X1, X2, pcA_in_g(.(X1, X2)))
U16_G(X1, X2, pcA_out_g(.(X1, X2))) → U18_G(X1, X2, multcC_in_ga(X1))
U18_G(X1, X2, multcC_out_ga(X1, X3)) → PA_IN_G(.(X3, X2))
PA_IN_G(.(0, .(s(s(X1)), .(X2, X3)))) → PA_IN_G(.(X1, .(X2, X3)))
PA_IN_G(.(0, .(s(s(X1)), .(X2, X3)))) → U21_G(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
U21_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U23_G(X1, X2, X3, multcB_in_gga(X1, X2))
U23_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → PA_IN_G(.(X4, X3))
PA_IN_G(.(0, .(0, X1))) → PA_IN_G(X1)
U9_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U11_G(X1, X2, X3, pcA_in_g(.(X4, X3)))
U11_G(X1, X2, X3, pcA_out_g(.(X4, X3))) → U13_G(X1, X2, X3, multcB_in_gga(s(s(X1)), X2))
U13_G(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → PA_IN_G(.(X5, X3))

The TRS R consists of the following rules:

pcA_in_g(.(X1, [])) → pcA_out_g(.(X1, []))
pcA_in_g(.(s(s(s(s(X1)))), .(X2, X3))) → U27_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(s(s(0)), .(X1, X2))) → U32_g(X1, X2, pcA_in_g(.(X1, X2)))
pcA_in_g(.(0, .(X1, []))) → pcA_out_g(.(0, .(X1, [])))
pcA_in_g(.(0, .(s(s(X1)), .(X2, X3)))) → U35_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(0, .(0, X1))) → U38_g(X1, pcA_in_g(X1))
U38_g(X1, pcA_out_g(X1)) → pcA_out_g(.(0, .(0, X1)))
U35_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U36_g(X1, X2, X3, multcB_in_gga(X1, X2))
multcB_in_gga(X1, 0) → multcB_out_gga(X1, 0, 0)
multcB_in_gga(X1, s(X2)) → U39_gga(X1, X2, multcB_in_gga(X1, X2))
U39_gga(X1, X2, multcB_out_gga(X1, X2, X4)) → U40_gga(X1, X2, sumcD_in_gga(X4, X1))
sumcD_in_gga(X1, 0) → sumcD_out_gga(X1, 0, X1)
sumcD_in_gga(X1, s(X2)) → U41_gga(X1, X2, sumcD_in_gga(X1, X2))
U41_gga(X1, X2, sumcD_out_gga(X1, X2, X3)) → sumcD_out_gga(X1, s(X2), s(X3))
U40_gga(X1, X2, sumcD_out_gga(X4, X1, X3)) → multcB_out_gga(X1, s(X2), X3)
U36_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U37_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U37_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → pcA_out_g(.(0, .(s(s(X1)), .(X2, X3))))
U32_g(X1, X2, pcA_out_g(.(X1, X2))) → U33_g(X1, X2, multcC_in_ga(X1))
multcC_in_ga(0) → multcC_out_ga(0, 0)
multcC_in_ga(s(X1)) → U42_ga(X1, multcC_in_ga(X1))
U42_ga(X1, multcC_out_ga(X1, X2)) → multcC_out_ga(s(X1), X2)
U33_g(X1, X2, multcC_out_ga(X1, X3)) → U34_g(X1, X2, pcA_in_g(.(X3, X2)))
U34_g(X1, X2, pcA_out_g(.(X3, X2))) → pcA_out_g(.(s(s(0)), .(X1, X2)))
U27_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U28_g(X1, X2, X3, multcB_in_gga(X1, X2))
U28_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U29_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U29_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → U30_g(X1, X2, X3, multcB_in_gga(s(s(X1)), X2))
U30_g(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → U31_g(X1, X2, X3, pcA_in_g(.(X5, X3)))
U31_g(X1, X2, X3, pcA_out_g(.(X5, X3))) → pcA_out_g(.(s(s(s(s(X1)))), .(X2, X3)))

The set Q consists of the following terms:

pcA_in_g(x0)
U38_g(x0, x1)
U35_g(x0, x1, x2, x3)
multcB_in_gga(x0, x1)
U39_gga(x0, x1, x2)
sumcD_in_gga(x0, x1)
U41_gga(x0, x1, x2)
U40_gga(x0, x1, x2)
U36_g(x0, x1, x2, x3)
U37_g(x0, x1, x2, x3)
U32_g(x0, x1, x2)
multcC_in_ga(x0)
U42_ga(x0, x1)
U33_g(x0, x1, x2)
U34_g(x0, x1, x2)
U27_g(x0, x1, x2, x3)
U28_g(x0, x1, x2, x3)
U29_g(x0, x1, x2, x3)
U30_g(x0, x1, x2, x3)
U31_g(x0, x1, x2, x3)

We have to consider all (P,Q,R)-chains.

(31) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → U7_G(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
PA_IN_G(.(s(s(0)), .(X1, X2))) → PA_IN_G(.(X1, X2))
PA_IN_G(.(s(s(0)), .(X1, X2))) → U16_G(X1, X2, pcA_in_g(.(X1, X2)))
PA_IN_G(.(0, .(s(s(X1)), .(X2, X3)))) → PA_IN_G(.(X1, .(X2, X3)))
PA_IN_G(.(0, .(s(s(X1)), .(X2, X3)))) → U21_G(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
PA_IN_G(.(0, .(0, X1))) → PA_IN_G(X1)
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial interpretation [POLO]:

POL(.(x1, x2)) = 1 + x2   
POL(0) = 0   
POL(PA_IN_G(x1)) = x1   
POL(U11_G(x1, x2, x3, x4)) = 1 + x3   
POL(U13_G(x1, x2, x3, x4)) = 1 + x3   
POL(U16_G(x1, x2, x3)) = 1 + x2   
POL(U18_G(x1, x2, x3)) = 1 + x2   
POL(U21_G(x1, x2, x3, x4)) = 1 + x3   
POL(U23_G(x1, x2, x3, x4)) = 1 + x3   
POL(U27_g(x1, x2, x3, x4)) = 0   
POL(U28_g(x1, x2, x3, x4)) = 0   
POL(U29_g(x1, x2, x3, x4)) = 0   
POL(U30_g(x1, x2, x3, x4)) = 0   
POL(U31_g(x1, x2, x3, x4)) = 0   
POL(U32_g(x1, x2, x3)) = 0   
POL(U33_g(x1, x2, x3)) = 0   
POL(U34_g(x1, x2, x3)) = 0   
POL(U35_g(x1, x2, x3, x4)) = 0   
POL(U36_g(x1, x2, x3, x4)) = 0   
POL(U37_g(x1, x2, x3, x4)) = 0   
POL(U38_g(x1, x2)) = 0   
POL(U39_gga(x1, x2, x3)) = 0   
POL(U40_gga(x1, x2, x3)) = 0   
POL(U41_gga(x1, x2, x3)) = 0   
POL(U42_ga(x1, x2)) = 0   
POL(U7_G(x1, x2, x3, x4)) = 1 + x3   
POL(U9_G(x1, x2, x3, x4)) = 1 + x3   
POL([]) = 0   
POL(multcB_in_gga(x1, x2)) = 0   
POL(multcB_out_gga(x1, x2, x3)) = 0   
POL(multcC_in_ga(x1)) = 0   
POL(multcC_out_ga(x1, x2)) = 0   
POL(pcA_in_g(x1)) = 0   
POL(pcA_out_g(x1)) = 0   
POL(s(x1)) = 0   
POL(sumcD_in_gga(x1, x2)) = 0   
POL(sumcD_out_gga(x1, x2, x3)) = 0   

The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:
none

(32) Obligation:

Q DP problem:
The TRS P consists of the following rules:

U7_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U9_G(X1, X2, X3, multcB_in_gga(X1, X2))
U9_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → PA_IN_G(.(X4, X3))
PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → PA_IN_G(.(X1, .(X2, X3)))
U16_G(X1, X2, pcA_out_g(.(X1, X2))) → U18_G(X1, X2, multcC_in_ga(X1))
U18_G(X1, X2, multcC_out_ga(X1, X3)) → PA_IN_G(.(X3, X2))
U21_G(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U23_G(X1, X2, X3, multcB_in_gga(X1, X2))
U23_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → PA_IN_G(.(X4, X3))
U9_G(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U11_G(X1, X2, X3, pcA_in_g(.(X4, X3)))
U11_G(X1, X2, X3, pcA_out_g(.(X4, X3))) → U13_G(X1, X2, X3, multcB_in_gga(s(s(X1)), X2))
U13_G(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → PA_IN_G(.(X5, X3))

The TRS R consists of the following rules:

pcA_in_g(.(X1, [])) → pcA_out_g(.(X1, []))
pcA_in_g(.(s(s(s(s(X1)))), .(X2, X3))) → U27_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(s(s(0)), .(X1, X2))) → U32_g(X1, X2, pcA_in_g(.(X1, X2)))
pcA_in_g(.(0, .(X1, []))) → pcA_out_g(.(0, .(X1, [])))
pcA_in_g(.(0, .(s(s(X1)), .(X2, X3)))) → U35_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(0, .(0, X1))) → U38_g(X1, pcA_in_g(X1))
U38_g(X1, pcA_out_g(X1)) → pcA_out_g(.(0, .(0, X1)))
U35_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U36_g(X1, X2, X3, multcB_in_gga(X1, X2))
multcB_in_gga(X1, 0) → multcB_out_gga(X1, 0, 0)
multcB_in_gga(X1, s(X2)) → U39_gga(X1, X2, multcB_in_gga(X1, X2))
U39_gga(X1, X2, multcB_out_gga(X1, X2, X4)) → U40_gga(X1, X2, sumcD_in_gga(X4, X1))
sumcD_in_gga(X1, 0) → sumcD_out_gga(X1, 0, X1)
sumcD_in_gga(X1, s(X2)) → U41_gga(X1, X2, sumcD_in_gga(X1, X2))
U41_gga(X1, X2, sumcD_out_gga(X1, X2, X3)) → sumcD_out_gga(X1, s(X2), s(X3))
U40_gga(X1, X2, sumcD_out_gga(X4, X1, X3)) → multcB_out_gga(X1, s(X2), X3)
U36_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U37_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U37_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → pcA_out_g(.(0, .(s(s(X1)), .(X2, X3))))
U32_g(X1, X2, pcA_out_g(.(X1, X2))) → U33_g(X1, X2, multcC_in_ga(X1))
multcC_in_ga(0) → multcC_out_ga(0, 0)
multcC_in_ga(s(X1)) → U42_ga(X1, multcC_in_ga(X1))
U42_ga(X1, multcC_out_ga(X1, X2)) → multcC_out_ga(s(X1), X2)
U33_g(X1, X2, multcC_out_ga(X1, X3)) → U34_g(X1, X2, pcA_in_g(.(X3, X2)))
U34_g(X1, X2, pcA_out_g(.(X3, X2))) → pcA_out_g(.(s(s(0)), .(X1, X2)))
U27_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U28_g(X1, X2, X3, multcB_in_gga(X1, X2))
U28_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U29_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U29_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → U30_g(X1, X2, X3, multcB_in_gga(s(s(X1)), X2))
U30_g(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → U31_g(X1, X2, X3, pcA_in_g(.(X5, X3)))
U31_g(X1, X2, X3, pcA_out_g(.(X5, X3))) → pcA_out_g(.(s(s(s(s(X1)))), .(X2, X3)))

The set Q consists of the following terms:

pcA_in_g(x0)
U38_g(x0, x1)
U35_g(x0, x1, x2, x3)
multcB_in_gga(x0, x1)
U39_gga(x0, x1, x2)
sumcD_in_gga(x0, x1)
U41_gga(x0, x1, x2)
U40_gga(x0, x1, x2)
U36_g(x0, x1, x2, x3)
U37_g(x0, x1, x2, x3)
U32_g(x0, x1, x2)
multcC_in_ga(x0)
U42_ga(x0, x1)
U33_g(x0, x1, x2)
U34_g(x0, x1, x2)
U27_g(x0, x1, x2, x3)
U28_g(x0, x1, x2, x3)
U29_g(x0, x1, x2, x3)
U30_g(x0, x1, x2, x3)
U31_g(x0, x1, x2, x3)

We have to consider all (P,Q,R)-chains.

(33) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 9 less nodes.

(34) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → PA_IN_G(.(X1, .(X2, X3)))

The TRS R consists of the following rules:

pcA_in_g(.(X1, [])) → pcA_out_g(.(X1, []))
pcA_in_g(.(s(s(s(s(X1)))), .(X2, X3))) → U27_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(s(s(0)), .(X1, X2))) → U32_g(X1, X2, pcA_in_g(.(X1, X2)))
pcA_in_g(.(0, .(X1, []))) → pcA_out_g(.(0, .(X1, [])))
pcA_in_g(.(0, .(s(s(X1)), .(X2, X3)))) → U35_g(X1, X2, X3, pcA_in_g(.(X1, .(X2, X3))))
pcA_in_g(.(0, .(0, X1))) → U38_g(X1, pcA_in_g(X1))
U38_g(X1, pcA_out_g(X1)) → pcA_out_g(.(0, .(0, X1)))
U35_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U36_g(X1, X2, X3, multcB_in_gga(X1, X2))
multcB_in_gga(X1, 0) → multcB_out_gga(X1, 0, 0)
multcB_in_gga(X1, s(X2)) → U39_gga(X1, X2, multcB_in_gga(X1, X2))
U39_gga(X1, X2, multcB_out_gga(X1, X2, X4)) → U40_gga(X1, X2, sumcD_in_gga(X4, X1))
sumcD_in_gga(X1, 0) → sumcD_out_gga(X1, 0, X1)
sumcD_in_gga(X1, s(X2)) → U41_gga(X1, X2, sumcD_in_gga(X1, X2))
U41_gga(X1, X2, sumcD_out_gga(X1, X2, X3)) → sumcD_out_gga(X1, s(X2), s(X3))
U40_gga(X1, X2, sumcD_out_gga(X4, X1, X3)) → multcB_out_gga(X1, s(X2), X3)
U36_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U37_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U37_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → pcA_out_g(.(0, .(s(s(X1)), .(X2, X3))))
U32_g(X1, X2, pcA_out_g(.(X1, X2))) → U33_g(X1, X2, multcC_in_ga(X1))
multcC_in_ga(0) → multcC_out_ga(0, 0)
multcC_in_ga(s(X1)) → U42_ga(X1, multcC_in_ga(X1))
U42_ga(X1, multcC_out_ga(X1, X2)) → multcC_out_ga(s(X1), X2)
U33_g(X1, X2, multcC_out_ga(X1, X3)) → U34_g(X1, X2, pcA_in_g(.(X3, X2)))
U34_g(X1, X2, pcA_out_g(.(X3, X2))) → pcA_out_g(.(s(s(0)), .(X1, X2)))
U27_g(X1, X2, X3, pcA_out_g(.(X1, .(X2, X3)))) → U28_g(X1, X2, X3, multcB_in_gga(X1, X2))
U28_g(X1, X2, X3, multcB_out_gga(X1, X2, X4)) → U29_g(X1, X2, X3, pcA_in_g(.(X4, X3)))
U29_g(X1, X2, X3, pcA_out_g(.(X4, X3))) → U30_g(X1, X2, X3, multcB_in_gga(s(s(X1)), X2))
U30_g(X1, X2, X3, multcB_out_gga(s(s(X1)), X2, X5)) → U31_g(X1, X2, X3, pcA_in_g(.(X5, X3)))
U31_g(X1, X2, X3, pcA_out_g(.(X5, X3))) → pcA_out_g(.(s(s(s(s(X1)))), .(X2, X3)))

The set Q consists of the following terms:

pcA_in_g(x0)
U38_g(x0, x1)
U35_g(x0, x1, x2, x3)
multcB_in_gga(x0, x1)
U39_gga(x0, x1, x2)
sumcD_in_gga(x0, x1)
U41_gga(x0, x1, x2)
U40_gga(x0, x1, x2)
U36_g(x0, x1, x2, x3)
U37_g(x0, x1, x2, x3)
U32_g(x0, x1, x2)
multcC_in_ga(x0)
U42_ga(x0, x1)
U33_g(x0, x1, x2)
U34_g(x0, x1, x2)
U27_g(x0, x1, x2, x3)
U28_g(x0, x1, x2, x3)
U29_g(x0, x1, x2, x3)
U30_g(x0, x1, x2, x3)
U31_g(x0, x1, x2, x3)

We have to consider all (P,Q,R)-chains.

(35) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(36) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → PA_IN_G(.(X1, .(X2, X3)))

R is empty.
The set Q consists of the following terms:

pcA_in_g(x0)
U38_g(x0, x1)
U35_g(x0, x1, x2, x3)
multcB_in_gga(x0, x1)
U39_gga(x0, x1, x2)
sumcD_in_gga(x0, x1)
U41_gga(x0, x1, x2)
U40_gga(x0, x1, x2)
U36_g(x0, x1, x2, x3)
U37_g(x0, x1, x2, x3)
U32_g(x0, x1, x2)
multcC_in_ga(x0)
U42_ga(x0, x1)
U33_g(x0, x1, x2)
U34_g(x0, x1, x2)
U27_g(x0, x1, x2, x3)
U28_g(x0, x1, x2, x3)
U29_g(x0, x1, x2, x3)
U30_g(x0, x1, x2, x3)
U31_g(x0, x1, x2, x3)

We have to consider all (P,Q,R)-chains.

(37) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

pcA_in_g(x0)
U38_g(x0, x1)
U35_g(x0, x1, x2, x3)
multcB_in_gga(x0, x1)
U39_gga(x0, x1, x2)
sumcD_in_gga(x0, x1)
U41_gga(x0, x1, x2)
U40_gga(x0, x1, x2)
U36_g(x0, x1, x2, x3)
U37_g(x0, x1, x2, x3)
U32_g(x0, x1, x2)
multcC_in_ga(x0)
U42_ga(x0, x1)
U33_g(x0, x1, x2)
U34_g(x0, x1, x2)
U27_g(x0, x1, x2, x3)
U28_g(x0, x1, x2, x3)
U29_g(x0, x1, x2, x3)
U30_g(x0, x1, x2, x3)
U31_g(x0, x1, x2, x3)

(38) Obligation:

Q DP problem:
The TRS P consists of the following rules:

PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → PA_IN_G(.(X1, .(X2, X3)))

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(39) UsableRulesReductionPairsProof (EQUIVALENT transformation)

By using the usable rules with reduction pair processor [LPAR04] with a polynomial ordering [POLO], all dependency pairs and the corresponding usable rules [FROCOS05] can be oriented non-strictly. All non-usable rules are removed, and those dependency pairs and usable rules that have been oriented strictly or contain non-usable symbols in their left-hand side are removed as well.

The following dependency pairs can be deleted:

PA_IN_G(.(s(s(s(s(X1)))), .(X2, X3))) → PA_IN_G(.(X1, .(X2, X3)))
No rules are removed from R.

Used ordering: POLO with Polynomial interpretation [POLO]:

POL(.(x1, x2)) = x1 + x2   
POL(PA_IN_G(x1)) = x1   
POL(s(x1)) = x1   

(40) Obligation:

Q DP problem:
P is empty.
R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(41) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(42) YES